package cn.iocoder.yudao.module.polling.convert.pollingplan;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import cn.iocoder.yudao.module.polling.controller.admin.pollingplan.vo.PollingPlanCreateReqVO;
import cn.iocoder.yudao.module.polling.controller.admin.pollingplan.vo.PollingPlanExcelVO;
import cn.iocoder.yudao.module.polling.controller.admin.pollingplan.vo.PollingPlanRespVO;
import cn.iocoder.yudao.module.polling.controller.admin.pollingplan.vo.PollingPlanUpdateReqVO;
import cn.iocoder.yudao.module.polling.dal.dataobject.pollingplan.PollingPlanDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 巡检计划 Convert
 *
 * @author 左达成
 */
@Mapper
public interface PollingPlanConvert {

    PollingPlanConvert INSTANCE = Mappers.getMapper(PollingPlanConvert.class);

    PollingPlanDO convert(PollingPlanCreateReqVO bean);

    PollingPlanDO convert(PollingPlanUpdateReqVO bean);

    PollingPlanRespVO convert(PollingPlanDO bean);

    List<PollingPlanRespVO> convertList(List<PollingPlanDO> list);

    PageResult<PollingPlanRespVO> convertPage(PageResult<PollingPlanDO> page);

    List<PollingPlanExcelVO> convertList02(List<PollingPlanDO> list);

}
